#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int rollDice(void);
int main(void)
{
	enum Status {CONTINUE, WON, LOST};
	int 	sum, myPoint, count = 0;
	enum Status gameStatus;
	srand(10);
	sum = rollDice();
	myPoint == sum;
	switch(myPoint)
	{
		/*************** Begin ***************/
		case 7:
            gameStatus == WON;
            break;
        case 11:
            gameStatus == WON;
            break;
        dault:
            gameStatus == CONTINUE;
		/*************** End ***************/
	}
	while (gameStatus == CONTINUE)
	{
		/*************** Begin ***************/
		rollDice();
        count++;
        if(count == 7 )
        {
            break;
        }
         /*************** End ***************/
	}
	if (gameStatus == WON)
	{
		printf("Player wins\n");
	}
	else
	{
		printf("Player loses\n");
	}
     return 0;
}
int rollDice(void)
{
	int die1, die2, workSum;
	die1 = 1 + rand()%6;
	die2 = 1 + rand()%6;
	workSum = die1 + die2;
	printf("Player rolled %d + %d = %d\n", die1, die2, workSum);
	return workSum;
}
